Your beginner-friendly guide to understanding how computers actually work!
Hardware is anything you can physically touch or drop on the floor (like a keyboard, a monitor, or a microchip). Software is the invisible set of instructions and programs that tell the hardware what to do (like a video game, a web browser, or an operating system).
Every single computer system in the world follows the Input → Process → Output cycle.
Can a device be both Input and Output? Yes! Think of a tablet's touchscreen. It acts as an output by displaying an image to you, but when you tap it, it acts as an input by sensing your finger!
Computers don't have human brains. They are built of billions of tiny electrical switches. A switch can only be ON (1) or OFF (0). Therefore, computers must use the Base-2 Binary system instead of our human Base-10 (decimal) system.
1001.| 8 | 4 | 2 | 1 |
|---|---|---|---|
| 1 | 0 | 0 | 1 |
Because computers only understand numbers, we had to invent a dictionary to translate numbers into text. ASCII is a famous standard for this. In ASCII, every letter, space, and symbol is assigned a specific decimal number.
For example, capital 'A' is 65. Because computers treat capital and lowercase letters as completely different characters, lowercase 'a' is 97! This is why passwords are case-sensitive. To find 'C', you just count up: A=65, B=66, C=67.
A bitmap is an image made up of a grid of tiny colored dots called pixels. To store an image, the computer saves the binary color code for every single pixel from left to right, top to bottom.
Colour Depth means how many binary bits are used for a single pixel.
To tell the computer which binary code equals which colour, the file includes a Lookup Table (e.g., "00 = Red", "11 = Black").
Metadata: This is "data about data." If a computer just receives raw binary 1s and 0s, it won't know if it's looking at text, an image, or a song! Metadata is attached to the file to tell the computer the image's height, width, and lookup table.
An algorithm is a precise, step-by-step set of instructions designed to solve a problem. Think of it like a recipe. Precision is highly important because computers take things literally. If you mess up the sequence (the order of steps), the program will fail!
A simple algorithm to sort numbers. The computer looks at two adjacent items at the exact same time. If the left item is bigger than the right item, they swap! It keeps doing this until it reaches the end of the list (this is called one "pass"). After the very first pass, the largest number in the list is absolutely guaranteed to be pushed to the very end!
Computer science is all about finding mathematical patterns! In the Tower of Hanoi puzzle, the minimum moves always follow a mathematical rule based on the number of disks. If 3 disks take 7 moves, and 4 disks take 15 moves... can you spot the doubling pattern to figure out what 5 disks will take?